package org.example.annotations.route;

import java.lang.annotation.*;

@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface RequestMapping {
    String value() default "";
    HttpMethod[] method() default {HttpMethod.GET, HttpMethod.POST};

    enum HttpMethod {
        GET, POST, PUT, DELETE
    }
}
